import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/SichuanMap.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'SichuanMap',
    component: HomeView
  },
  {
    path: '/Foldchart',
    name: 'Foldchart',
    component: () => import(/* webpackChunkName: "about" */ '../views/Foldchart.vue')
  },
  {
    path:'/MainLeft',
    name:'MainLeft',
    component:()=>import(/* webpackChunkName: "about" */ '../components/MainLeft.vue')
  },
  {
    path:'/Feelings',
    name:'Feelings',
    component:()=>import(/* webpackChunkName: "about" */ '../views/Feelings.vue')
  },
  {
    path:'/Mun',
    name:'Municipality',
    component:()=>import('../views/Municipality.vue')
  },
  {
    path:'/Barchart',
    name:'Barchart',
    component:()=>import('../components/Barchart.vue')
  },
  {
    path:'/Barright',
    name:'Barright',
    component:()=>import('../components/Barright.vue')
  },
  // {
  //   path:'/feelings',
  //   name:'feelings',
  //   component:()=>import(""),
  // }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router

